package cn.zysuyuan.item.service.impl;

import cn.zysuyuan.common.entity.PageResult;
import cn.zysuyuan.item.entity.MedicinalEdition;
import cn.zysuyuan.item.mapper.MedicinalEditionMapper;
import cn.zysuyuan.item.service.MedicinalEditionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-02-18 12:54
 */
@Service
public class MedicinalEditionServiceImpl implements MedicinalEditionService {

    @Autowired
    private MedicinalEditionMapper medicinalEditionMapper;

    @Override
    public PageResult<MedicinalEdition> selectList(Map<String, Object> map) {
        List<MedicinalEdition> list = medicinalEditionMapper.selectList(map);
        return new PageResult<MedicinalEdition>(list);
    }
}
